package com.example.demo.entity.pojo;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * 作业题目表(HomeworkQuestion)实体类
 *
 * @author makejava
 * @since 2025-07-13 17:30:30
 */
public class HomeworkQuestion implements Serializable {
    private static final long serialVersionUID = -59070622164418122L;

    /**
     * 题目ID
     */
    private Integer id;

    /**
     * 作业ID
     */
    private Integer homeworkId;

    /**
     * 题目序号
     */
    private Integer questionNumber;

    /**
     * 题目内容
     */
    private String questionContent;

    /**
     * 题目类型：single_choice=单选题, multiple_choice=多选题, fill_blank=填空题, essay=问答题
     */
    private String questionType;

    /**
     * 选择题选项（JSON格式）
     */
    private String options;

    /**
     * 正确答案
     */
    private String correctAnswer;

    /**
     * 答案解析
     */
    private String answerAnalysis;

    /**
     * 题目分值
     */
    private BigDecimal score;

    /**
     * 创建时间
     */
    private Date createTime;

    // Getters and Setters
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getHomeworkId() {
        return homeworkId;
    }

    public void setHomeworkId(Integer homeworkId) {
        this.homeworkId = homeworkId;
    }

    public Integer getQuestionNumber() {
        return questionNumber;
    }

    public void setQuestionNumber(Integer questionNumber) {
        this.questionNumber = questionNumber;
    }

    public String getQuestionContent() {
        return questionContent;
    }

    public void setQuestionContent(String questionContent) {
        this.questionContent = questionContent;
    }

    public String getQuestionType() {
        return questionType;
    }

    public void setQuestionType(String questionType) {
        this.questionType = questionType;
    }

    public String getOptions() {
        return options;
    }

    public void setOptions(String options) {
        this.options = options;
    }

    public String getCorrectAnswer() {
        return correctAnswer;
    }

    public void setCorrectAnswer(String correctAnswer) {
        this.correctAnswer = correctAnswer;
    }

    public String getAnswerAnalysis() {
        return answerAnalysis;
    }

    public void setAnswerAnalysis(String answerAnalysis) {
        this.answerAnalysis = answerAnalysis;
    }

    public BigDecimal getScore() {
        return score;
    }

    public void setScore(BigDecimal score) {
        this.score = score;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
